import Server from '@ioc:Adonis/Core/Server'
//注册中间件
Server.middleware.register([
  () => import('@ioc:Adonis/Core/BodyParser'),
  () => import('App/Middleware/LogRequest')
])
//注册命名中间件
Server.middleware.registerNamed({
  auth: () => import('App/Middleware/Auth')
})

